package com.bjc.tt_shop.service;


import com.bjc.tt_shop.dto.Order;
import com.bjc.tt_shop.dto.Page;
import com.bjc.tt_shop.dto.Result;
import com.bjc.tt_shop.pojo.po.TbItem;
import com.bjc.tt_shop.vo.TbItemCustom;
import com.bjc.tt_shop.vo.TbItemQuery;

import java.util.List;

/**
 * User: DHC
 * Date: 2017/12/29
 * Time: 14:20
 * Version:V1.0
 */
public interface ItemService {
    TbItem getItemById(Long itemId);

    List<TbItem> listItem();

    Result<TbItemCustom> listItemsByPage(Page page, Order order, TbItemQuery query);


    int batchUpdate(List<Long> ids);

    int batchItemUp(List<Long> ids);

    int batchItemDown(List<Long> ids);

    int saveItem(TbItem tbItem, String itemDesc);
}
